package com.ctshk.rpc.booking.req.outside.train.save;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 站外火车票出行信息
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-03-09
 */
@Data


@ApiModel(value="SupplierOutsideOrderTrainReq对象", description="站外火车票出行信息")
public class SupplierOutsideOrderTrainReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "所属订单ID")
    private Long orderId;

    @ApiModelProperty(value = "启程日期")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "返程日期")
    private LocalDateTime backTime;

    @ApiModelProperty(value = "启程城市JSON")
    private String startCityJson;

    @ApiModelProperty(value = "启程地点")
    private String startLocation;

    @ApiModelProperty(value = "到达城市JSON")
    private String endCityJson;

    @ApiModelProperty(value = "到达地点")
    private String endLocation;

    @ApiModelProperty(value = "交通类别JSON")
    private String trafficTypeJson;

    @ApiModelProperty(value = "等级主数据JSON")
    private String levelJson;

    @ApiModelProperty(value = "车次码")
    private String trainNumber;

    @ApiModelProperty(value = "说明")
    private String remark;

    @Valid
    @NotEmpty(message = "火车票旅客类型列表不能为空")
    @ApiModelProperty(value = "火车票旅客类型列表")
    private List<SupplierOutsideOrderTrainTouristTypeReq> supplierOutsideOrderTrainTouristTypeReqList;
}
